home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 2_11.lha / 2_11 / 2_11a.c next >
Text File  |  1993-08-08  |  244b  |  13 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. / swap two integers
  6. / version 1
  7. oid swapints(int *a, int *b)
  8.  
  9.    int t = *a;
  10.    *a = *b;
  11.    *b = t;
  12.  
  13.